target_include_directories(${PROJECT_NAME}.elf 
    PUBLIC 
    ${CMAKE_CURRENT_LIST_DIR}
    ${CMAKE_CURRENT_LIST_DIR}/include
)

file(GLOB RTOS_SOURCES ${CMAKE_CURRENT_LIST_DIR}/*.c)

target_sources(${PROJECT_NAME}.elf
    PRIVATE
    ${RTOS_SOURCES}
)
